590a04ce6b516d8316bd920c7c79d90ce94cda5f,src/main/java/guichaguri/betterfps/UpdateChecker.java,UpdateChecker,showChat,#,37

Before Change



    public static void showChat() {
        if(!done) return;
        if(prop == null) return;
        if(BetterFpsHelper.VERSION.equals(prop.getProperty("version"))) {
            prop = null;
            return;
        }
        if(!BetterFps.isClient) return;

        GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
        if(chat == null) return;

        TextComponentString title = new TextComponentString("BetterFps " + prop.getProperty("version") + " is available");
        title.setStyle(title.getStyle().setColor(TextFormatting.GREEN).setBold(true));

        TextComponentString desc = new TextComponentString(prop.getProperty("quick-description"));
        desc.setStyle(desc.getStyle().setColor(TextFormatting.GRAY));

        TextComponentString buttons = new TextComponentString(" ");
        buttons.setStyle(buttons.getStyle().setColor(TextFormatting.YELLOW));
        buttons.appendSibling(createButton("Download", prop.getProperty("download-url"), "Click here to download the new version"));
        buttons.appendText("  ");
        buttons.appendSibling(createButton("More Information", prop.getProperty("moreinfo-url"), "Click here for more information about the update"));

        chat.printChatMessage(title);
        chat.printChatMessage(desc);
        chat.printChatMessage(buttons);

After Change



    public static void showChat() {
        if(!done) return;
        if(updateVersion == null && updateDownload == null) return;
        if(!BetterFps.isClient) return;

        GuiNewChat chat = Minecraft.getMinecraft().ingameGUI.getChatGUI();
        if(chat == null) return;

        TextComponentString title = new TextComponentString("BetterFps " + updateVersion + " is available");
        title.setStyle(title.getStyle().setColor(TextFormatting.GREEN).setBold(true));

        TextComponentString buttons = new TextComponentString("  ");
        buttons.setStyle(buttons.getStyle().setColor(TextFormatting.YELLOW));
        buttons.appendSibling(createButton("Download", updateDownload, "Click here to download the new version"));
        buttons.appendText("  ");
        buttons.appendSibling(createButton("More", BetterFpsHelper.URL, "Click here for more versions"));

        TextComponentString desc = new TextComponentString(getRandomPhrase());
        desc.setStyle(desc.getStyle().setColor(TextFormatting.GRAY));

        if(updateVersion.length() < 8) {
            title.appendSibling(buttons);
            chat.printChatMessage(title);
            chat.printChatMessage(desc);
        } else {
            chat.printChatMessage(title);